configure: use pkg-config with newer gpgme and gpg-error
authorLuca BRUNO <luca.bruno@coreos.com>
Thu, 24 Nov 2022 16:39:35 +0000 (16:39 +0000)
committerSimon McVittie <smcv@debian.org>
Fri, 25 Nov 2022 10:54:28 +0000 (10:54 +0000)
commit9e55827ce51961a7eb6c96416cc13b46bfddd913
tree666dcea9b24cbca9ffc33aaf48f725fb5c87a6ad
parentd446bbb22e29a5244b2cad0560aced1ea89eacc8
configure: use pkg-config with newer gpgme and gpg-error

This tweaks autoconf logic in order to use pkg-config for gpgme
and gpg-error when available.
Recent versions of gpgme directly provide threaded support, and
gpg-error started shipping a .pc file. Thus on recent distributions
it is possible to directly use pkg-config for both. On older
environments, the legacy logic is kept in place.

Forwarded: https://github.com/ostreedev/ostree/pull/2789

Gbp-Pq: Name configure-use-pkg-config-with-newer-gpgme-and-gpg-error.patch
configure.ac
src/libostree/ostree-repo.c